#ifndef AUDIO_H_
#define AUDIO_H_

#include <SDL/SDL_mixer.h>
#include <map>

namespace JDL
{
  class Audio
  {
  public:
    Audio();
    ~Audio();

    void	PlayMusic(const std::string str);
    void        PlaySound(const std::string str);
    void	AddMusic(const std::string str);
    void	AddSound(const std::string str);
    void	SetRepeatTrack();
    void	SetRepeatPlaylist();
  private:
    std::map<std::string, Mix_Music*>	_playlist;
    std::map<std::string, Mix_Chunk*>	_sounds;
    bool	_repeat_track;
    bool	_repeat_playlist;
    std::string	current_track;
  };
}

#endif
